﻿using System.Data;
using MyWeb.Data;

namespace MyWeb.Business
{
    public class ContactService
    {
        private readonly ContactController _contactController = new ContactController();

        #region [Contact_GetByAll]

        public DataTable Contact_GetByAll()
        {
            return _contactController.Contact_GetByAll();
        }

        #endregion

        #region [Contact_GetById]

        public DataTable Contact_GetById(int id)
        {
            return _contactController.Contact_GetById(id);
        }

        #endregion

        #region [Contact_Insert]

        public void Contact_Insert(ContactInfo contact)
        {
            _contactController.Contact_Insert(contact);
        }

        #endregion

        #region [Contact_Update]

        public void Contact_Update(ContactInfo contact)
        {
            _contactController.Contact_Update(contact);
        }

        #endregion

        #region [Contact_Delete]

        public void Contact_Delete(int id)
        {
            _contactController.Contact_Delete(id);
        }

        #endregion
    }
}